#ifndef TOOLBRACHRF_H
#define TOOLBRACHRF_H
#include <QtWidgets>
#include "solar/trunk/NinsipidView.h"
#include "tools/Gadget.h"

class ToolBranchRF {

public:
    ToolBranchRF();

    QWidget *CloakBotton = new QWidget();

    NinsipidView *snapShotLabel = new NinsipidView();
    //Roof Widget
    QWidget *RoofWidget = new QWidget(CloakBotton);

    //Public Qlayout
    QGridLayout *GlobalRoofGrid = new QGridLayout();
    QHBoxLayout *LeftMenuHbox = new QHBoxLayout();

    //QToolButton Definition ***按钮不可点击原因为指定了父类，会对组件造成影响，当前已取消指定父类，问题修复
    QToolButton *TR_actionBut = new QToolButton(CloakBotton);
    QToolButton *FL_fileaddBut = new QToolButton(CloakBotton);
    QToolButton *AS_assistBut = new QToolButton(CloakBotton);
    QToolButton *SP_serialBut = new QToolButton(CloakBotton);
    QToolButton *VW_viewcutBut = new QToolButton(CloakBotton);
    QLabel *VW_rtLab = new QLabel();

    //QMenuBar/QMenu Definition
    QMenu *TR_actionMenu = new QMenu(CloakBotton);
    QMenu *FL_actionMenu = new QMenu(CloakBotton);
    QMenu *AS_actionMenu = new QMenu(CloakBotton);
    QMenu *VW_actionMenu = new QMenu(CloakBotton);
    QMenu *SP_configMenu = new QMenu(CloakBotton);

    QMenu *AS_listMode = new QMenu("列表模式", AS_actionMenu);
    QMenu *AS_TableView = new QMenu("Table View", AS_actionMenu);

    QAction *TR_PauseAC = new QAction("线程挂起", TR_actionMenu);
    QAction *TR_RecoverAC = new QAction("线程恢复",  TR_actionMenu);
    QAction *TR_WipeAC = new QAction("线程终止", TR_actionMenu);
    QAction *TR_OpfireAC = new QAction("线程全开: 关", TR_actionMenu);

    QAction *FL_sgfileAC = new QAction("添加文件", FL_actionMenu);
    QAction *FL_folderAC = new QAction("添加文件夹", FL_actionMenu);

    QAction *AS_pasteAC = new QAction("数据粘贴", AS_actionMenu);
    QAction *AS_rscopyAC = new QAction("结果复制", AS_actionMenu);
    QAction *AS_cpcolumnAC = new QAction("进入比对列选择", AS_actionMenu);
    QAction *AS_numputAC = new QAction("弹出数量输入框", AS_actionMenu);

    QAction *AS_multiAC = new QAction("多选模式", AS_listMode);
    QAction *AS_singleAC = new QAction("单选模式", AS_listMode);
    QAction *AS_continueAC = new QAction("连续模式", AS_listMode);
    QAction *As_cpviewAC = new QAction("对比结果视图", AS_TableView);
    QAction *As_xmviewAC = new QAction("Xmind解析视图", AS_TableView);

    QAction *SP_taBarSwcAC = new QAction("工具栏隐藏", VW_actionMenu);

    QAction *TL_AnlyAC = new QAction("解析工具", VW_actionMenu);
    QAction *TL_QrcodeAC  = new QAction("二维码工具", VW_actionMenu);
    QAction *TL_SerialAC  = new QAction("串口工具", VW_actionMenu);

private:
    Extend definfc;

};
#endif
